<template>
  <div>
    <tiny-radio-group v-model="value" vertical>
      <tiny-radio label="1">备选项1</tiny-radio>
      <tiny-radio label="2">备选项2</tiny-radio>
      <tiny-radio label="3">备选项3</tiny-radio>
    </tiny-radio-group>
    <tiny-radio-group v-model="value" vertical class="ml-20">
      <tiny-radio-button label="1">备选项1</tiny-radio-button>
      <tiny-radio-button label="2">备选项2</tiny-radio-button>
      <tiny-radio-button label="3">备选项3</tiny-radio-button>
    </tiny-radio-group>
  </div>
</template>

<script>
import { Radio, RadioGroup, RadioButton } from '@opentiny/vue'

export default {
  components: {
    TinyRadio: Radio,
    TinyRadioGroup: RadioGroup,
    TinyRadioButton: RadioButton
  },
  data() {
    return {
      value: '1'
    }
  }
}
</script>

<style scoped>
.ml-20 {
  margin-left: 20px;
}
</style>
